package com.itheima.dubbo.mysql.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.commons.model.domain.LocalTotal;
import com.itheima.dubbo.interfaces.LocalTotalApi;
import com.itheima.dubbo.mysql.mapper.LocalTotalMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;
import java.util.List;

@Service
public class LocalTotalImpl implements LocalTotalApi {

    @Autowired
    private LocalTotalMapper localTotalMapper;

    @Override
    public List<LocalTotal> query(String startTime, String endTime) {
        List<LocalTotal> localTotal = localTotalMapper.query(startTime, endTime);
        return localTotal;
    }
}
